Replication archive for: 
Every Story Has a Beginning, Middle, and an End (But Not Always in That Order): Predicting Duration Dynamics in a Unified Framework

Authors: Daina Chiba, Nils W. Metternich, and Michael D. Ward

Eight sets of files
(1) 1_InstallPackages.R (R code file to install necessary packages)
(2) 2_DescriptiveStats.R (R code file to produce descriptive figures)
(3) 3_MonteCarlo.R (R code file to do Monte Carlo simulations)
(4) 4_Analysis.R (R code file to do the main empirical analyses)
(5) Figures & Table: 8 figures (Figure*.pdf) and 1 table (Table2.txt). 
(6) Monte Carlo output files: 19 R Data files (mores.*.rda) R code (3) produces these output files. 
(7) SPDDD_0.14.tar.gz (R package for Mac / Unix)
(8) SPDDD_0.14.zip (R package for Windows)

Instructions:
1. Copy all the files into a folder
2. Run 0_InstallPackages.R in R to install the necessary packages
3. Run 1_DescriptiveStats.R in R to produce Figures 1 and 5
4. Run 2_MonteCarlo.R in R to replicate the Monte Carlo simulation results
5. Run 3_Analysis.R in R to replicate the main empirical results

For any questions about the R code files, please contact Daina Chiba (daina.chiba@gmail.com)

Last updated: 2015-05-28
